<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/">
            <data>
                <executiondata>
                    <owner/>
                </executiondata>
       
                <xsl:for-each select="//processdata">
                    <processdata>
                        <xsl:attribute name="target_place">
                            <xsl:value-of select="@place_id"/>
                        </xsl:attribute>
                        <xsl:attribute name="place_id">
                            <xsl:value-of select="@place_id"/>
                        </xsl:attribute>
                        <xsl:attribute name="name">
                            <xsl:value-of select="@name"/>
                        </xsl:attribute>
                        <xsl:apply-templates select="./*"/>
                    </processdata>
                </xsl:for-each>
            </data>
    </xsl:template>

	<xsl:template match="processdata|node()">
	   <xsl:copy>
		  <xsl:attribute name="readonly">false</xsl:attribute>
          <xsl:attribute name="writable">true</xsl:attribute>
	     <xsl:apply-templates select="node()"/>
	   </xsl:copy>
	</xsl:template>

</xsl:stylesheet>